package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxp
 * @since 2022-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BaseInfo对象", description="")
public class BaseInfo extends Model<BaseInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    //主键为自增ID
    private Long id;
    //通道的选择
    private String choice;
    //暂存和提交状态
    private String pstatus;
    //关联外键用户的id
    private Long userId;
    //申报方式：个人/组织
    private String adminType;
    //申报人姓名
    private String loginName;
    //性别
    private String gender;
    //证件类别
    private String idType;
    //证件号码
    private String idNumber;
    //手机号码
    private String tel;
    //邮箱
    private String email;
    //推荐组织，个人申报则不显示
    private String organization;
    //推荐组织/个人所在地
    private String address;
    //组织/个人紧急联系电话
    private String phone;
    //组织类型，个人申报则不显示
    private String organtype;
    //标题
    private String title;
    //自动生成
    private LocalDateTime createTime;
    //自动生成
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
